<!-- 循环记录 -->
<template>
	<view class="content">
		<view class="contents">
			<view class="item" v-for='(item,index) in list' :key='index'>
				<view class="firstBox">
					<text>{{item.nickName}}</text>
					<view class="right">
						<view>{{'+'+item.money}}</view>
						<text>元</text>
					</view>
				</view>
				<view class="secondBox">
					<text>购买课程：</text>
					<view>{{item.buyResourceNum+'节'}}</view>
				</view>
				<view class="thirdBox">
					<view class="left">
						<text>订单金额：</text>
						<view>{{item.payMoney+'元'}}</view>
					</view>
					<text>{{item.createTime}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			list:Array
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.contents {
		width: 92%;
		margin: 0 auto;
		padding-top: 38rpx;
	
		.item {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			color: #1A1A1A;
			background: #FFFFFF;
			box-shadow: 0px 1px 45px 0px rgba(174,185,190,0.2000);
			border-radius: 10rpx;
			margin-bottom: 26rpx;
	
			.firstBox {
				font-size: 36rpx;
				font-family: DIN;
				font-weight: 500;
				color: #FF8809;
	            display: flex;
				align-items: center;
				justify-content: space-between;
				border-bottom: 2rpx solid #E9E9E9;
				padding: 32rpx 26rpx 26rpx 26rpx;
				.right{
					display: flex;
					align-items: center;
					&>text{
						font-family: Adobe Heiti Std R;
					}
				}
				&>text {
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #343434;
				}
			}
	
			.secondBox {
				display: flex;
				align-items: center;
	            margin: 32rpx 0 38rpx 26rpx;
				&>text {
					margin-right: 20rpx;
				}
			}
	
			.thirdBox {
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #999999;
	             padding: 0 26rpx 34rpx 26rpx;
				.left {
					display: flex;
					align-items: center;
					color: #1A1A1A;
	
					&>text {
						margin-right: 20rpx;
					}
				}
			}
		}
	}
</style>